package controller

import (
	"encoding/json"
	"lktx-dns/bean"
	"lktx-dns/service"
	"net/http"
)

type CaInfo struct {
}

func (receiver CaInfo) CaHandler(w http.ResponseWriter, r *http.Request) {
	caService := service.CaService{}
	ca, _ := caService.GetCa()
	json.NewEncoder(w).Encode(bean.ResOk(*ca.Content))
	return
}
